home *** CD-ROM | disk | FTP | other *** search
/ Medabots Cardz / Medabots CD Cardz Sumilidon.bin / mac / assets / sumilidon.dxr / 00262_Script_262 < prev    next >
Text File  |  2001-12-07  |  1KB  |  35 lines

  1. property myFile, useronlinee, resetscore
  2. global gotobrassurl, squam, thescore, gNetID, jumbo, beginscore
  3.  
  4.  
  5. on mouseUp me
  6.   --amended by fez 7/12/01
  7.   --useronline = (the environment).internetConnected 
  8.   --if useronline = #online then
  9.     if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
  10.     myFile = new(xtra "fileio")    -- Create an instance of FileIO
  11.     --  openFile (myFile, the moviePath &"info.txt",0)--Open the file with R/W access  
  12.     openFile (myFile, squam&"infos.txt",0)--Open the file with R/W access  
  13.     delete(myFile) --deletes the file
  14.     --  createFile (myFile, the moviePath &"info.txt") --creates the file again
  15.     createFile (myFile, squam&"infos.txt") --creates the file again
  16.     --  openFile(myFile,the moviePath &"info.txt",0) --Open the file with R/W access
  17.     openFile(myFile, squam&"infos.txt",0) --Open the file with R/W access
  18.     --  mySaveString = thescore --puts the contents of the field 'input' into the variable mySaveString
  19.     resetscore = 0
  20.     put resetscore into member("holdscore")
  21.     mySaveString = member("holdscore").text
  22.     writeString(myFile,mySaveString) --writes text to the file
  23.     
  24.     closeFile(myFile) -- Close the file 
  25.     myFile = 0 -- Dispose of the instance
  26.     if beginscore = 100 then
  27.       beginscore = 0
  28.     end if
  29.     
  30.     goToNetPage gotobrassurl, "_new"  
  31.     go to frame "instructions_game"
  32.   --end if
  33. end
  34.  
  35.